package com.kk.springboot_001.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_fruit") // 映射水果表
public class Fruit {

    @TableId(type = IdType.AUTO)
    private Integer fruitId;

    private String fruitName;

    // 外键字段，指向tb_user表的user_id
    private Integer userId;
}